package com.neiquan.neiquandemo.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.WindowManager;

import com.neiquan.neiquandemo.R;

import net.neiquan.applibrary.base.BaseActivity;

/**
 * Created by cxh on 2016/9/9.
 */
public class SplashActiviy extends BaseActivity {

    @Override
    public int getRootViewId() {
        return R.layout.activity_splash;
    }

    @Override
    public void setViews() {
        getWindow ().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);  //全屏
        new Handler().postDelayed(new Runnable() {

            @Override
            public void run() {
                startActivity(new Intent(SplashActiviy.this,MainActivity.class));
                finish();
            }
        }, 1200);
    }

    @Override
    public void initData() {

    }
}
